added spec for emit method in mixin