Added unit test for patch

- PATCH without an identifier should raise an exception