fix the test mode preference