added test for mapcat
implemented distinct