compiletest: code cleanup