Testing the update function