print more detailed error message to help fix the test error related to ...

...scan.