Added triangle test method.