updated tests and fixed some issues in testhelper