JsonMappingExceptionMapperTest and small refactor