fix tests and add redirect app