Added a test for throwing an error on missing fileName option.