Automated Macro Testing