Fix tests on MySQL 5.6