Add test for extend operator