need_events option moved into the do_setopts method.
unit tests adaptated to the common tests.