If you have a MRF server with samples available, and have properly configured config.php, you can reference samples in your tests using their MD5 hash.
This has many advantages over the simple file test: It prevents manipulating samples (that can be dangerous) on your machine, prevents duplicating storage of samples, and keeps the samples in the right location by leveraging multiple APIs.