implemented hash_keys function and associated tests