added test for update