fixed some errors in the tests