#86 add test for generation abortion
#86 fix file generating tests failing sometimes and leaving generated files behind