Test code improvements

1) Moved tests from inst/tests to tests/testthat
2) Added new tests for file-related assertions
3) Changed package so it imports `tools`. I think this is necessary for test code to exercise has_extension(), but tell me if there's a better way to do it.

Thanks, Ben
I don't think you _have_ import recommended packages, but it's probably good practice