Refactoring adding Protractor testing framework