Fixed testing of colored tests and output redirection