Added some unit tests to see if I could reproduce WICKET-1658. But I haven't been able to so far, but I might as well push the unit tests.