tests for nested map and fixing a bug in NestedMap.hs