Added unit-style test for extracting mappings