Add before callback for patch request
Add patch test with valid attributes
Add test for invalid attributes