Improve unit tests errors diagnostic.