test code compilation error fix