fixed compile error in tests