testing with phantomjs, mocha and chai setup