Add slideForLine() method and more unit tests

Add slideForLine() method to the SlideLineMapping class. It returns the
slide for the passed line number.