Added test for object initialization