compiles and runs testMapMain with bugs