remove errors in test mode