write controllers and models test for users