added User model and some basic tests