factored mapping test code (very minimal) in to TestMapping shared test module, and used for mapping and sortedmappings