fixed unreferenced issue.length calls
unit tests for code id_token grant