adds test for Update method