Scanner exception throwing is tested.