testing opening of file