e2e tests work, but not on phantomjs