Sorry I was assuming incorrectly that these properties were not already in yarn-default.xml.
The real reason that the test is failing is because these default value definitions in YarnConfiguration are mistakenly flagged as property keys. You'd need to skip them using configurationPropsToSkipCompare. This is how a similar issue is addressed in TestYarnConfigurationFields:
We should add our 2 default fields to get around this.