added rhash redis functions and tests, added helpers