Slightly dodgy handling of additionalProperties
Add test for additionalProperties