commandfactory test