Added triangle test