Added test for IndexedMapper.
Improved test for IndexedMapper and its implementation.