Use goog.now instead of getTime wrapper. Mock goog.now in the specs and get rid of the getTime parameter being passed around.