Fixed a memory leak in the tests
Created by: mattclarke
Issue
N/A
Description of work
The thread analyser(!) noticed that there was a small memory leak in these tests. This PR fixes those.
Nominate for Group Code Review
-
Nominate for code review