added User model and some tests