See the attached test case.
Created attachment 22609 [details] Test case
See also: bug 17909 (for Soup back-end).