[FLINK-1077] Improved error message if test fails

I could not reproduce the mentioned error, but if the error occurs again a better error message will be printed.