added testObject function