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