tests: Improve afstest_UnlinkTestConfig cleanup