Fixes last tests to works with phantomjs