testing objects hasOwnProperty