added User model and tests for it