Change existing tests to use testthat
Add a couple more basic tests