moved tests from inst to tests/testthat, tests pass, closes #20

can I get a +1