Map and FlatMapTest implemented