Fixed protractor tests and code cleaned.