Refactor test for manage todos
Move sign in to helper module