Document:

<PAGE>

                                                                   EXHIBIT 10.40

                            SIXTH AMENDMENT TO LEASE

        THIS SIXTH AMENDMENT TO LEASE (this "Amendment") is made and entered
into as of this 18th day of September, 1995, by and between REGIONAL INDUSTRIAL
DEVELOPMENT CORPORATION OF SOUTHWESTERN PENNSYLVANIA ("Landlord") and TOLLGRADE
COMMUNICATIONS, INC. ("Tenant").

                                WITNESSETH THAT:

        WHEREAS, Landlord and Tenant entered into a Lease Agreement dated August
5, 1993 (the "Original Lease"); and

        WHEREAS, the Original Lease was amended by First Amendment of Lease
Agreement dated March 15, 1994 (the "First Amendment"), Second Amendment of
Lease Agreement dated as of July 1, 1994 (the "Second Amendment"), Third
Amendment of Lease Agreement dated as of September 15, 1994 (the "Third
Amendment"), Fourth Amendment of Lease Agreement dated as of September 15, 1994
(the "Fourth Amendment") and Fifth Amendment of Lease Agreement dated March 6,
1995 (the "Fifth Amendment"). The Original Lease as amended by the First
Amendment, the Second Amendment, the Third Amendment, the Fourth Amendment and
the Fifth Amendment is hereinafter called the "Lease"; and

        WHEREAS, the parties desire to further amend the Lease in accordance
with the terms of this Amendment.

<PAGE>

        NOW, THEREFORE, for good and valuable consideration, the receipt and
sufficiency of which is hereby acknowledged, and intending to be legally bound
hereby, Landlord and Tenant covenant and agree as follows:

        1.      The Landlord does hereby lease and demise unto Tenant three
hundred sixty (360) square feet of space known as the "lobby area" (the "Lobby
Space") in the Building in which the premises are located in as is condition as
more particularly shown on Exhibit A. The annual Base Rent for the Lobby Space
shall be $8.25/square foot payable in monthly installments of Two Hundred
Forty-seven and 50/100 Dollars ($247.50) on the date Base Rent is due under the
Lease. Base Rent for the Lobby Space shall be prorated for any partial months.
Any improvements to the Lobby Space shall be subject to Landlord's prior written
consent and shall be made by Tenant at its sole cost and expense. The plans and
specifications for the Lobby Space previously delivered to Landlord are approved
in accordance with Section 6 of the Original Lease. The Landlord hereby
additionally leases the first floor hall and first floor bathrooms in the
Building in which the Premises are located in as is condition to Tenant (the
"Hall and Bath Space"). The Lobby Space and the Hall and Bath Space shall be
deemed to be part of the "Premises" under the Lease but Section 33 of the
Original Lease shall not apply to the Hall and Bath Space.

        2.      Tenant agrees that it will provide ingress, egress, regress and
access to A. M. Castle & Co. through the Premises to the area leased to A. M.
Castle & Co. for storage in the building in which the Premises are located
during normal business hours.

        3.      Tenant may install at its sole cost and expense HVAC units in
the portion of the Premises known as Units D-2, D-3, D-4 and D-5 (the "D
Units"), which shall

                                      -2-
<PAGE>

be the property of Landlord upon termination or expiration of this Lease. In the
event that Tenant so chooses to install such HVAC units, all such units shall
comply with the specifications and other information in the binder labeled
"Tollgrade Communications Proposed Expansion Plan and Cost Estimate" dated
August 3, 1995. All work shall be done in a good, workmanlike and lien free
manner. All fresh air needed with respect to such HVAC systems shall be taken
from outside the Complex. Tenant agrees to provide copies of all paid invoices
relating to the installation and acquisition of the HVAC equipment and copies of
checks or other confirmation of such payment to Landlord within ten (10) days of
paying the same. Tenant further agrees to provide Landlord with such additional
documentation or detail as Landlord may reasonably request.

        In the event that Tenant complies with the requirements of this Section
3, the Base Rent will be reduced so that the cost of acquisition and
installation of the HVAC units in Units D-2 through D-5 up to an amount equal to
$22,431.27 (the "Cost") will be amortized over a five (5) year period.
Accordingly, monthly Base Rent will be reduced by an amount not to exceed
$373.85 for up to five (5) years during the Term, as such Term may be extended.
The provisions of Section 7(B)(b) and Section 33 of the Original Lease shall not
apply to the D Units. Additionally, Section 33 shall not apply to Units D-1, D-5
and D-6 of the Premises.

        4.      Landlord hereby additionally leases unto Tenant 6,350 square
feet of space in the Complex, known as part of the former IDL Space and
additionally referred to as Units B-1, B-2, C-1 and C-2 (the "Partial IDL
Space") in as is condition, which Partial IDL Space is more particularly shown
on Exhibit B attached hereto. Tenant shall pay to

                                      -3-
<PAGE>

Landlord, as rental for the Partial IDL Space, payable in advance and without
demand on the first business day of each successive calendar month during the
term of the Lease, together with any escalations provided in the Lease (subject
to Section 7 hereunder) Four and 75/100 Dollars ($4.75) per square foot of space
per year payable in monthly installments of Two Thousand Five Hundred Thirteen
and 54/100 ($2,513.54). Delivery of the Partial IDL Space to Tenant and
compliance with all provisions of the Lease other than the payment of monthly
rental shall occur on the date hereof and commencement of the payment of monthly
rental shall occur on October 15, 1995. Monthly rental for any partial month
shall be prorated. The Partial IDL Space shall be deemed to be a part of the
Premises under the Lease except that Section 7(B)(b) and Section 33 of the
Original Lease shall not apply to the Partial IDL Space.

        Except as provided for below with respect to HVAC, Tenant shall provide
plans and specifications for any work or improvements that Tenant plans to
undertake in the Partial IDL Space to Landlord for Landlord's prior approval
which approval shall not be unreasonably withheld and shall be provided in a
timely manner. All such approved work and improvements shall be done in a good,
workmanlike and lien free manner.

        Tenant may install at its own cost and expense HVAC units in the Partial
IDL Space, which shall be the property of Landlord upon termination or
expiration of this Lease. In the event that Tenant so chooses to install such
HVAC units, all such units shall comply with the specifications and other
information in the binder labeled "Tollgrade Communications Proposed Expansion
Plan and Cost Estimate" dated August 3, 1995. All

                                      -4-
<PAGE>

work shall be done in a good, workmanlike and lien free manner. All fresh air
needed by such HVAC systems -shall be taken from outside of the Complex. Tenant
agrees to provide copies of all paid invoices relating to installation and
acquisition of the HVAC equipment and copies of checks or other confirmation of
such payment to Landlord within ten (10) days of paying the same.

        In the event that Tenant complies with the provisions of this Section 4,
the Base Rent for the Partial IDL Space will be reduced so that the cost of
acquisition and installation of the HVAC units in the Partial IDL Space up to an
amount equal to $24,656.62 (the "IDL Cost") will be amortized over a five (5)
year period. Accordingly, Monthly Base Rent for the Partial IDL Space will be
reduced by an amount not to exceed $410.94 for up to five (5) years during the
Term, as such Term may be extended.

        5.      Landlord hereby additionally leases unto Tenant 3,865 square
feet of space in the Complex, known as the former Simtronics Space and
additionally referred to as Suite 201 (the "Simtronics Space") in as is
condition, which Simtronics Space is more particularly shown on Exhibit C
attached hereto. Tenant shall pay to Landlord, as rental for the Simtronics
Space, payable in advance and without demand on the first business day of each
successive calendar month during the term of the Lease, together with any
escalations provided in the Lease (subject to Section 7 hereof) Eight and 25/100
Dollars ($8.25) per square foot of space per year payable in monthly
installments of Two Thousand Six Hundred Fifty-seven and 19/100 Dollars
($2,657.19). Delivery of the Simtronics Space to Tenant shall be on the date
hereof and commencement of the payment of monthly rental shall occur on

                                      -5-
<PAGE>

October 1, 1995. Monthly rental for any partial month shall be prorated. The
Simtronics Space shall be deemed to be a part of the Premises under the Lease.

        Tenant shall provide plans and specifications for any work or
improvements that Tenant desires to undertake in the Simtronics Space to
Landlord for Landlord's prior approval which shall not be unreasonably withheld
and shall be provided in a timely manner. All such approved work and
improvements shall be done in a good, workmanlike and lien free manner.

        6.      Landlord and Tenant acknowledge that Landlord has undertaken
certain repairs, upgrades and replacements (the "HVAC Repairs") with respect to
the HVAC in the Premises. Once the HVAC Repairs are completed to the
satisfaction of Landlord and Tenant, which the parties agree to confirm in
writing, Tenant agrees that it will undertake its maintenance obligations with
respect to the HVAC system as required in Section 7(B)(b) of the Original Lease.
In the event that Tenant fails to comply with its maintenance obligations under
the Lease, Landlord will have no further responsibility with respect to Section
7(B)(b) or Section 33 of the Original Lease.

        7.      Lessee's Tax Responsibility and Additional Rent for the Lobby
Space, the Partial IDL Space and the Simtronics Space shall relate to increases
in those costs in excess of 1996 costs for purposes of Sections 3B and 3C of the
Original Lease.

        8.      This Amendment shall become effective as of August 1, 1995 and
possession of the Lobby Space and the Hall and Bath Space shall be made
available to Tenant and payment of rental for such space as described in Section
1 shall commence on such date.

                                      -6-
<PAGE>

        9.      In the event that Tenant desires to lease any additional
warehouse space in the Complex, the Base Rent for such space shall be
$4.75/square foot/year if such warehouse space is leased in 1995. If such
warehouse space is leased after 1995, the Base Rent/square foot of warehouse
space shall be increased by 25cents/square foot for each calendar year after
1995 (so that Base Rent for 1996 would be $5.00/ square foot, for 1997 would be
$5.25/square foot, etc.). Such additional warehouse space shall not be subject
to Section 33 of the Original Lease when leased by Tenant.

        10.     Any capitalized terms used herein and not defined herein but
defined in the Lease shall have the same definition as provided for in the
Lease.

        11.     Except as specifically amended hereby, the terms and condition
of the Lease shall remain in full force and effect and shall be binding on the
parties hereto and their respective successors and assigns.

        IN WITNESS WHEREOF, the parties have caused this Amendment to be duly
executed and delivered as of the day and year first above-written.

                                           LANDLORD:

                                           REGIONAL INDUSTRIAL
                                           DEVELOPMENT CORPORATION OF
                                           SOUTHWESTERN PENNSYLVANIA

                                           By: /s/ Frank Brooks Robinson
                                               ---------------------------------
                                           Title: President
                                                  ------------------------------

                    [Signatures continued on following page]

                                      -7-
<PAGE>

                   [Signatures continued from preceding page]

                                           TENANT:

                                           TOLLGRADE COMMUNICATIONS, INC.

                                           By: /s/ R. Craig Allison
                                               ---------------------------------
                                           Title: Chairman
                                                  ------------------------------

                                      -8-
<PAGE>

                                    EXHIBIT A

[FLOOR PLAN OF LOBBY SPACE]

<PAGE>

                                    EXHIBIT B

[FLOOR PLAN OF PARTIAL IDL SPACE]

<PAGE>

                                    EXHIBIT C

[FLOOR PLAN OF SIMTRONICS SPACE]<PAGE>
                                                                   EXHIBIT 10.41

                           SEVENTH AMENDMENT TO LEASE

        THIS SEVENTH AMENDMENT TO LEASE (this "Amendment") is made and entered
into as of this 9th day of July, 1996, by and between REGIONAL INDUSTRIAL
DEVELOPMENT CORPORATION OF SOUTHWESTERN PENNSYLVANIA ("Landlord") and TOLLGRADE
COMMUNICATIONS, INC. ("Tenant").

                                WITNESSETH THAT:

        WHEREAS, Landlord and Tenant entered into a Lease Agreement dated August
5, 1993 (the "Original Lease"); and

        WHEREAS, the Original Lease was amended by First Amendment of Lease
Agreement dated March 15, 1994 (the "First Amendment"), Second Amendment of
Lease Agreement dated as of July 1, 1994 (the "Second Amendment"), Third
Amendment of Lease Agreement dated as of September 15, 1994 (the "Third
Amendment"), Fourth Amendment of Lease Agreement dated as of September 15, 1994
(the "Fourth Amendment"), Fifth Amendment of Lease Agreement dated March 6, 1995
(the "Fifth Amendment") and Sixth Amendment to Lease dated September 18, 1995
(the "Sixth Amendment"). The Original Lease as amended by the First Amendment,
the Second Amendment, the Third Amendment, the Fourth Amendment, the Fifth
Amendment and the Sixth Amendment is hereinafter called the "Lease"; and

        WHEREAS, the parties desire to further amend the Lease in accordance
with the terms of this Amendment.

<PAGE>

        NOW, THEREFORE, for good and valuable consideration, the receipt and
sufficiency of which is hereby acknowledged, and intending to be legally bound
hereby, Landlord and Tenant covenant and agree as follows:

        1. The Landlord additionally leases and demises unto Tenant 3,600 square
feet of space in the Complex, known as part of the former IDL space and
additionally referred to as "Units B-3 and C-3" (the "Additional Leased
Premises") in as is condition, which space is more particularly shown on Exhibit
"A" which is attached hereto and made a part hereof. Tenant shall pay to
Landlord, as Base Rent for the Additional Leased Premises payable in advance and
without demand on the first business day of each successive calendar month
during the term of the Lease commencing as of March 1, 1996, together with any
escalations provided in the Lease Five and 00/100 Dollars ($5.00) per square
foot of space per year payable in monthly installments of One Thousand Five
Hundred and 00/100 Dollars ($1,500.00). Delivery of the Additional Leased
Premises to Tenant and compliance with all provisions of the Lease occurred on
March 1, 1996. Monthly rental for any partial month shall be prorated. The
Additional Leased Premises shall be deemed to be part of the Premises under the
Lease except that Section 7(B)(b) and Section 33 of the Original Lease shall not
apply to the Additional Leased Premises.

        2. Effective as of the date of termination of Landlord's Lease with IDL
for the Additional IDL Space (as hereinafter defined), which shall in no event
be later than August 31, 1996, the Landlord additionally leases and demises unto
Tenant 13,200 square feet of space in the Complex, known as part of the former
IDL space and additionally referred to as "Units B-4 to B-7" and "Units C-4 to
C-7" in as is condition, which space is

                                      -2-
<PAGE>

more particularly shown on Exhibit "A" which is attached hereto and made a part
hereof (the "Additional IDL Space"). Landlord shall deliver possession of the
Additional IDL Space upon vacation of such space by IDL, Inc. The Additional IDL
Space shall be deemed to be part of the Premises under the Lease except that
such Additional IDL Space shall not be subject to Section 7(B)(b) and Section 33
of the Original Lease. Tenant shall pay to Landlord, as Base Rent for the
Additional IDL Space payable in advance and without demand on the first business
day of each successive calendar month during the term of the Lease, the amount
of Three Dollars and Seventy-five Cents ($3.75) per square foot of space,
payable in monthly installments together with any escalations provided for in
the Lease for so long as Tenant uses the Additional IDL Space exclusively for
warehouse purposes. Monthly rental for any partial month shall be prorated. To
the extent that, after the date Tenant begins occupancy of the Additional IDL
Space, there are any improvements to such Additional IDL Space which are made at
Landlord's or Tenant's cost and expense, the rental rate agreed to in this
paragraph shall be renegotiated by Landlord and Tenant but shall be the rate
specified in Section 9 of the Sixth Amendment if the Additional IDL Space is not
used exclusively for warehouse purposes.

        3. Tenant shall provide plans and specifications for any work or
improvements that Tenant plans to undertake in the Additional Leased Premises
and Additional IDL Space to Landlord for Landlord's prior approval which
approval shall not be unreasonably withheld and shall be provided in a timely
manner. All such approved work and improvements shall be done in a good,
workmanlike and lien free manner and in accordance with all requirements in the
Lease.

                                      -3-
<PAGE>

        4. Any capitalized terms used herein and not defined herein but defined
in the Lease shall have the same definition as provided for in the Lease.

        5. Except as specifically amended hereby, the terms and conditions of
the Lease shall remain in full force and effect and shall be binding on the
parties hereto and their respective successors and assigns.

        IN WITNESS WHEREOF, the parties have caused this Amendment to be duly
executed and delivered as of the day and year first above-written.

                                       LANDLORD:

                                       REGIONAL INDUSTRIAL DEVELOPMENT
                                       CORPORATION OF SOUTHWESTERN
                                       PENNSYLVANIA

                                       By: /s/ Frank Brooks Robinson
                                           -------------------------------------
                                       Title: President
                                             -----------------------------------

                                       TENANT:

                                       TOLLGRADE COMMUNICATIONS, INC.

                                       By: /s/ Christian L. Allison
                                           -------------------------------------
                                       Title: CEO
                                              ----------------------------------

                                      -4-
<PAGE>

                                    EXHIBIT A

[FLOOR PLAN OF ADDITIONAL LEASED PREMISES]

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00048-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00048-of-00352.parquet"}]]