Fix shell command bugs in bin/test.rb