add tests for PATCH requests