Use $interval instead of $timer for protractor tests