[PATCH 10/30] test: Create pre/post-run functions