Refactor mapper tests into smaller classes.