Testing throwable objects