edit r_tests, use more samples, changed legend