Jserrorcollector with test

Hi
I commited a version with tests, but I do not know if they are correct because I ran into some problems: http://java.net/projects/thucydides/forums/user-forum/topics/56835-Checking-for-Javascript-Error-Messages-in-Thucydides

Apologies for the long wait, I have only one workday per week.