todo controller unit tests
implemented todo functions