put tests in inst/tests

removes unecessary imports in pd.R