Functional tests for the Triangle problem