Check query failure exception test (SCALA-133)