fixing: test mode check