Unit tests

Unit tests for DefaultNonceService and DefaultOAuth2ClientDetailsEntityService