Fix compile errors for test.