add test code in compiler folder