tests: Run valgrind tests in CI
Add the tests that fail in valgrind to the no-valgrind suite so we can run the valgrind test setup in CI. Also fixed a couple memory leaks.
Add the tests that fail in valgrind to the no-valgrind suite so we can run the valgrind test setup in CI. Also fixed a couple memory leaks.