Add tests for index-maps/language-maps

This illustrates a bug in the current algorithms. See also #218.