Fixing PhantomJS tests for TravisCI