changed defaultEnvironment to environment
added phoneDetail e2e test and added phantomjs headless browser for e2e testing