return also call object
changed to testthat from RUnit.
moved testing code under inst.