made emulator tests thread based