Switch tests to tests/testthat

* this is the new recommended location, allowing tests to be installed or not
* see https://github.com/hadley/testthat#integration-with-r-cmd-check