added tests for Purge command
fixed failing tests for AuditCommand