Add exceptions tests.

Use a more memory efficient fly-weight implementation and
add minified objects.