TestEmulator implementation