moved tests to directory tests/testthat