Test script runs in bash shell to guarantee correct output redirection on all systems.