Modified CompileAndRun to handle integration tests.