Test access of file.