added failing test for emitting errors.

#20
emit errors when no callbacks are given
fix isOpen/Closed test
code style
release 5.2.0