Emulator: Added a unit test for command line options