Refactor protractor tests to apply page pattern