mocha-phantomjs tests working with sinon and chai