tests for IMap class