Added a test to check that a non-existant file actually throws an exception.