#779 better URI generation for file in test