Test case for properties and prototype chain