Enable exception format checking when testing.

Updates our new exception base class to enable exception
format checking. This should help enforce that we pass
the correct kwargs to exceptions when testing.

Change-Id: I9ac62e289c0de3931861473912bb6c98b57d4126
Merge "Enable exception format checking when testing."