fix command updating unit tests