added test for extend