Fix ctest integration