Added test for scope in extended and included methods.