Fix compile errors for test projects.