replace default mapping() methods from tests by a method in the superclass and some method extractions