Should use $timeout.flush().