Added code generator syscall. Added more tests.