Test for proper working of map in single-thread context.