Added the compiler API and fixed a test.
Fix all broken tests.