Ruler, integration with slider and unit tests