Compilation error in tests