Fix GroupByKey()
Update test case for GroupByKey()
Merge pull request #3060 from ke-yu/fix_magn5407

Fix magn5407: GroupByKey fails in 0.7.3