Update method for test