RHive test code