adapted to testthat 0.8: moved tests from inst/ to tests/