added test for IOError

* added test to be sure that an IOError is raised when the a filename
that doesn't exist is entered