tests and new wrapper for redirections