Unit test to see if UserCredentials can be saved to MongoDB.
Added @ObjectId on the userRef field to prevent Mongo from changing it.