Code and a test that allows grant extension to specify alternative expiration time to the access token it creates.