Add `TokenGenerator` specs

**As a** developer 
**In order to** make the  `TokenGenerator` reliable 
**And** to make contribution easier 
**I want** its interface to be properly tested 
**And**, since it could be re-used, properly documented 

See #104