Ajust logic of bin/test.rb