Fix Todo lib tests, and migrations