wrote unit tests for the DefaultUserDetailsService