test cases using object