Improve test CreateRealMap and CreateCustomMap

Fast improvement for one our test