tests: Introduce afstest_GetProgname