[PATCH v18 02/19] kunit: test: add test resource management API