See TW7505. Looks like bug was fixed via prior refactors, but adding the test ensures it will stay fixed.