redirect errors to stderr
redirect stderr to stdout in test
Merge pull request #436 from koenpunt/stderr

redirect output of errors to stderr