refactor listmaker.rb
Add more testing scenarios