renames the tests
adds valgrind memcheck tests

- I added these tests just out of curiosity to try to integrate valgrind
  into the test suite
- also fixes the only detected leaks which are rather trivial and
  would have been non-problematic anyway (just to make the tests pass)