Improve tests for map(::Function, ::GroupedDataFrame) (#1592)
Improve tests for map(::Function, ::GroupedDataFrame) (#1592)

Also test it for functions returning a vector and a matrix. Refactor code to avoid duplication.
JuliaStats/DataFrames.jl