Most of the failing tests were failing due to changes in MySQL 5.7 default sql_mode and because of invalid timestamps ('0000-00-00')