Unit tests for CommandParser