fixed bugs in new tests