Converted the test for the user model from Coffee to JS