better + autogrind
fix a memory leak + more tests