test: Fix exceptions test
PyPy: Workaround possible bug in PyPy 2.3 handling type.__name__