open files in tests as bytes