Tests: Add checking of error from graph tests