pulling tests into a single loop over files