User.grupped_by_failed_login_count method optimization
Last part of TodoItem methods and tests refactoring