Add testcase for fetchobject