Consider adding tests that check that the 'type' property of a sub-field is valid.