Add test case for Object.prototype.freeze.

Please take a look.
It’s `Object.freeze`, not `Object.prototype.freeze`.