test(): add tests to cover restructured patching