Script for automated redirect testing