adding expect test for HTTP redirect API