Change status code of test to handle redirection