fixed some bugs in tests