Added tolerance tests for handling unexpected exceptions