Create funcMap2D and tests