added test to file openings