improved test for WICKET-5439