improve error message of tests