Adding IllegalArgumentExceptions on null file & Reader plus tests.