add test fail handler
Add accessor for raw http requests references #266