test redirect assertion method