I don't understand the names of some of your tests. The function your testing is ST_TriangleDirection. What is ST_TINSlopeDirection?