Add failure handlers to test calls.
Merge pull request #1697 from carsonmcdonald/capturetestfailures

Add failure handlers to test calls.