added tests testing is_valid_command