Add test for internally generated identifiers.
Merge pull request #67 from sourishkrout/master

Stash it all in cache for subsequent use. + Test