added CommandMatchTest

1. made CommandMatch handles null String.
2. added CommandMatchTest