Added R integration unit test