Run Drupal Simpletests from the command line and Drush and avoid permission errrs by running as www-data (the server) and also preserve environment variables (-E). Preserving environment variables is really only needed  when you enable xdebug on the command line.