please add a test that it doesn't spill into matching 3 lines if only 2 lines were requested...
I know -- it shouldn't, but that is why it would be a 'unit' test ;)