fix test - it should not compile into production code

adding ifdefs to prevent likes of "reloader" from automatic execution of tests during hot code reload