refactor rest tests
use JSON Patch for updates