Fixed memleak in tests.