Minor optimization when checking if we're in test mode or not.