[PATCH v1 02/17] kunit: test: add test resource management API