Fixed a bug in the mapper test