Added CommandContext to the TestSystem
Added idempotency checks for commands