fixed compile error for tests