Add some tests for command pattern matching