cas: use tmpdir for tests
Merge pull request #207 from jonboulle/cas_test_tmp

cas: use tmpdir for tests