fix compilation errors in tests (2)