add test for #34
raise error if test temp dir does not exist