add Function.prototype.bind polyfill in tests because phantomjs is buggy