Explicitly test if 'testthat' is a directory.
Merge pull request #110 from azvoleff/master

Explicitly test if 'testthat' is a directory.