add test for GenTimeKey
Merge pull request #879 from maciejmrowiec/master

add test for GenTimeKey