Added tests for User model

Tests all validations and stuff :)