Re-adding some tests from 0.9.x
Fixed hook inheritance test.
Added redirection test. For #869