Improved error message for unit test.