Writing tests for the command parser