Added some unit tests for the user and modified the model for presence.