Replace any_instance with expect_any_instance_of