some basic R algo tests