rename hash/list to hash_key/list_key and add tests for period class