fix a test case
better error messages