Prepared for mocha-phantomjs
Updated tests
Added async tests