Test that deprecation exceptions are working differently, after
suggestion by @embray