Add test case for Object.prototype.preventExtensions.

Please take a look.
Also add tests for non-objects.