Add integration test to cover patch support, thx to @mariussturm.

References #137