Test code to test ransac.