UnitTests for Command and CommandFactory

Coverage: 80%