[BUGFIX] Fluid paginate widget wrong number of links (Revision 1)

If the maximumNumberOfLinks configuration option is set to 8
the widget will render 10 links.

Solved the problem by changing a plus to a minus in the calculation
of the display range end and added unit tests for several cases.

Change-Id: I77b56ccd3c4f5d80e7bdeb08b01c981c044f455b
Resolves: #53806
Releases: master, 2.0
Revision-Id: 47a6458b5f8ae3d5a2327e622afb9def7873570d