Replaced test_package() with test_check().
Moved testfiles to /tests/testthat/