add test of dynamic cmd & validation(rspec)