basic test case and naive hash map implementation