add test for GenTimeKey