only put in test mode if DEBUG