Testing using PhantomJS with Protractor