Added stat command with ATR and tests