Add Jan Stolarek's test for Trac #9872