Fixed errors on both providers not bubbling up

Extended testing to cover invalid iin number 111111. Changed code to callback with error so this now works instead of the throw that did not work. Also corrected provider loop which was overrunning the end of the array.

Fixes #10