add r2 test cases