task error tests: check for error type and source code lines