turn off redirect in test