Adjust test path to where the code really is.
Use ‘hasOwnProperty’ to avoid collisions with other libraries that extend Object.prototype.