Fixed the thrown error in the placeholder object.
Added a mocha test suite for testing.