Add test for BooleanField and required

This tests setting required=True on a BooleanField.

Test for issue #1004.