Confirm Object.prototype.hasOwnProperty doesn't trace prototype chain.

Add test case to confirm that Object.prototype.hasOwnProperty doesn't trace prototype chain.

Please take a look.
Also add tests for (non-object) primitives, e.g. `'foo'` or `42`.