add test for hashmap return