Enable debug mode when in test environment