I have some doubts about these tests. They will fail everytime we change any detail on how we are logging.
We could make test more tolerant to changes by just checking for the existance of important messages to be printed, like
`Error: foo` and `module.uri + " " + lineNumber` contained in `prints[0]`