[PATCH v13 02/18] kunit: test: add test resource management API