Update secmemtest and memeleaktest to use the test infrastructure.