moved tests back to inst/test as causing problems in tests/testhat