added command class and test case