Add test for objects in socket