Adjust tests to works with phantomjs