Added ThrowingPatcherTest to test throwErrors and ignoreErrors

Change-Id: Ic4c5d90a0cc3b38dc68088051f3812e8b0d22c55
Merge "Added ThrowingPatcherTest to test throwErrors and ignoreErrors"