wrote some tests for functions starting with 'R' and 'S'

wrote some tests for functions starting with 'R' and 'S'