TEZ-1568. Add system test for propagation of diagnostics for errors (Jeff Zhang via bikas)