Added update command and its tests