Added stress test to check that failures can be managed by the library.