Used flat_map instead of map.flatten in mas_many_through_associations_test.rb