[PATCH 4/5] kunit: tool: use `with open()` in unit test