Refactor todos controller test