add rn script and corresponding test script