Define createMapperFunction().

test/mapper.js
	-Test whether function fields are correctly interpreted by the
	mapper.