Added a loop in the test script and first attempt at auth rep for 3scale