Add tests for 'sub' as optional claim.