Add mixin-related core extension plugin tests.

Factor out assertGeneralPlugin.
Minor test cleanup.