modified homepage and added test for user model