renaming test classes
Adding error information
Making isValid() method generic for all commands