Instrument file as part of test