fix test to use real line numbers and simple fix to make slicing work