Bugfixes and unit tests

Hi,

a quick summary of changes 
- fixed the calls to undefined issue variable in the grant types
- added unit tests for id_token token and code id_token grants

Could you please also publish this to npmjs ? so it can be installed easilly ?
thanks
david