add more tests for the object function