Implemented feedback from Carlos Antonio da Silva. 

Move the logic concerning the Hash option form the `select`to the `select!`method.
Changed `each.collect` to `.map`
Refactored `test_select_with_hash` to use a join and select a field whose name is present in both sides of the join – :id.