Add several unit-tests for the user.model.