tests: Give the python callback the error state as string
tests: Make ResSet.release() in libresource wrapper return a tuple