Added a test for get_user_credentials.
A little bit worried by the potentially excessive use of Mock