put IS_TEST at module scope, so its not recomputed each time test_mode()
is called