open file in test