Don't rely 'which drush' when determining the Drush to use for tests. Instead use the Drush that holds the bootstrap.inc thats in use.