testcase for rts library call optimization