Add a test for the possible growing MAPCodec leak