Adds a test for the getMap function