Added spec for handling redirects