add collect_select.rb file and test file