Added test for emitting object creation.