add tests for remember selection feature
do not register listener if selection remembering is disabled