add unit tests using testthat