fixed unit testing issues (added bind() polyfill)