E2e tests working with requirejs