tests: fix errors