added more tests

I had problems with conversion of vectors and matrice's from R and added tests to find the problem. Turns out it was not a problem in Rif but still I think these tests might be useful to include. Can also serve as examples of usage.