test: improved error message