Added unit tests for CommandParser