Made test resistant to differences among command implementations