fixes many memmory leaks in tests
Merge branch 'master' of github.com:paulstaab/scrm