Check version of testthat

testthat <0.7.1 use global environment for the enclosure
testthat >=0.8.0 use parent to global environment for enclosure

Plans are to update CRAN to v0.8.0 in January.

Added a check so that ProjectTemplate will work with all versions of testthat