Fix the build of tests.