Only provide test API in test mode