Add tests for matches_mapper_db