[PATCH v2 26/32] test: Move context temporary files to state dir