Fix warning from R CMD check
Add test cases