Check the command existance prior create and add Unit tests for the case

Closes #548