fixes to get the integration test to run (using ctest)