In triangle test (previous was in circle test) implemented