Test of update function.