Fixed memory leaks in tests
2 files changed