add tests for update