added missing tests for hasOwnProperty checks