completed the triangle tests