fixing some bugs in the tests