add tests, which describe the same behavior for add and update handlers