little bugfixing for unittests..