LocalMap and tests