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