added tests for general command 'commandExists'