code styling
refactored PATCH instead of PUT - adjusted tests