test class for cmd