small bugfixs with the tests