test and fix using redirection implementation