added specs for map and reduce in relationComposition