Backport tests

@gsathya, this is a pull request to backport 2 tests from the summer version of Centinel. This has already been code reviewed and it works. Will you review/merge it?
I think this is more intuitive - 
```
if req.status_code < 300 or req.status_code > 399:
    result['success'] = False
if "https" in req.headers.get("location", ""):
    result['success'] = False
```