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