fixed HTTP status, added redirect and redirect tests