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