Finish implement the test suite for compiler api.