Fix the compilation of tests