added index to user model - created tests for users