test for cmd