Test for class Command end writting