Completed unit tests for backend user model.