move tests to tests/testthat