Expand test coverage.

Test getting/setting boolean properties.
Test that exception is thrown when passing a vaule of the wrong type to a property.
Test that boolean properties generate the string values 'true' and
'false in the xml instead of the values 1 and 0.