Moving tests to browser/phantomjs