implemented SubCommandFilter
added a test case for SubCommandFilter