fix MySQLdb tests