update TestBoundary and fix code Triangle