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