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