R: move remaining test cases into the package.