Do we agree that you don't expect your first test to work
To clarify, the property is of type ObjectProperty, so it's expected that passing a BigDecimal will cause an exception. The passed value must be assignable to the property type.