Add test for #340 under failing; trying to resolve it, but without success yet.