Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
expect_next_instance_of
We need this because `expect_any_instance_of` doesn't work on prepended models. Now we could use the same code between CE/EE