add to selection feature selectAllVisibleRows

As requested in #1477 

Also extended unit tests.