Refactored the way tests retrieve files from their bundle.