adding tests for update