test for map(dict of lists) + simpler implementation