compiler and emulator test framework