Testing get object function