I can't get this in my head, so here it is: how to test that a module can upload images. Add this in your Drupal Simpletest:
<?php$image = current($this->drupalGetTestFiles('image'));return drupal_realpath($image->uri);?>