Extend throwsException() assertion to handle testing against error objects