TEZ-816. Add unit test for cascading input failure (Tassapol Athiapinya via bikas)