Added redirectroutes and tests