Test generation algorithm using RRT