Introduce resource patch
Tests for resource patch
Merge pull request #515 from ppp0/issue-515

introduce patch resource