WICKET-5147 test written before fix and fixed it