Run tests in temporary directories.

Since the output files have fixed names (e.g. cxms_score.res)
then the tests can get confused if multiple tests are run
simultaneously with ctest -j (e.g. the nightly coverage build
is run with ctest -j4). Put each problematic test in a temporary
directory to avoid such overlaps.