osx ctest fix