Add extra unit tests for update action. Fix the existing tests (improper PUT request)