Use expected_emits_length instead of sleep in in_object_space test