fixed compile error building test code