Fix compile error in tests.