Java test cases related to Object class