Test that the values returned by DB queries are of the same type as the values inserted in the database.