Remove unused selected lines from history call
Add test for blame with line range