BUG: fixing commands bug in test scritps