Make sure to test redirect and non-redirect case