Adds test case for @extend keyword handling