Unit tests for the user model methods.