added test code for object.lua