Short circuit on nil response.
Add test for handling redirect.
Fix deprecation warnings (be_true and be_false).