Test the r if is achieved