added user controller and change routes and add tests