basic testing
fix cleanup with trap exit