Fixed some issues with the test script for map loom.