Bugfix WICKET-5147 cookies wickettester second try

i did some tests, did fix the bugs i found this way, the tests should show how wicket tester will handle this cookie stuff, did extend the javadoc to explain this a little bit more than before...