Added test for getObj method