added test for update command