improved unit tests for HMGET and fixed bug