Test cases for @extend

This patch contains several failing test cases for some uses of `@extend` that are a little more advanced than those you currently support.