test cases to describe the MySQL boolean behavior.
Unifies mysql and mysql2 casting of booleans.