test hasOwnProperyt method