fixed condition_test
add validateCommand and its test