[FIX] Fixing resource leak in tests system.

Leak was not critical, occurred at the end of a test suite run.