Added test for opening file