Add test for rtm