The Patch test error is not directly linked to the provided solution patch.
The test error is related to the missing schema for the 'rest_example_test' content type, which is missing.
Previously, when there was no toolbar entry for the 'rest example' module, this test method 'testExampleToolbar' was never getting called, hence the error was never generated. To fix this the schema file can be added
Contribution Issue Link