added tests for Command