URL redirect testing ruby script