Added tests on rgen_ext