fixing login redirect test