Fix tests for emulator module