test: Fix memory leaks
Merge pull request #12 from clibs/test/fix-leaks

leaky tests