[Libguestfs] [hivex PATCH] ruby: improve test functions