Added test cases and initial rvm code- still not work yet!