test mode fix