Adds functional test for update().