Testing for access to the file.