add unit test of compiler