added method to get property names. added test case