fixed memory leak in tests

3 jobs for devel in 48 seconds (queued for 18 seconds)
Status Name Job ID Coverage
  Test
passed test_address #127958
shared-fi

00:00:44

passed test_bare #127957
shared-fi

00:00:39

passed test_undefined #127959
shared-fi

00:00:47