Added triangle generator and unit test for PE12