Fixed tests in snap-test to be compatible with new map iterator