Add tests for todos controller