Tests for wrapping exceptions.