get most of the unit tests working with mono

- make sure threads are initialized when starting/importing clr
- replace use of Forms in unittests with alternative equivalent tests