fix protractor test and fix unit test under FF and Chrome