Adds a test for #41's bug.