karma tests via phantomjs