added new command check
added tests for new command check