Actually disable test endpoints if debug is False