create tests for my_select and my_collect which are copies of the select/collect functions of ruby