added debts controller, routes and some tests