Implemented shouldEmit. Added tests for beforeEmit.
1.3.0