fix errors in test files