kmapByCategory tested