Test the update functionality