shutdown on gc
add more tests