testFile function asserts that generated file is typesafe and does not contain #ifdefs