Update emulator functions and add starting emulator tests