fixed a problem in the hasOwnProperty test