Remove some unused variables
Release all memory in tests and fix comment
Merge pull request #26 from Tilka/foo

Release all memory in tests