added tests and required fields to user class