Fix #18 and add line number benchmark

I hope I'm not causing trouble by including two changes in this PR. I had problems running the benchmarks on my machine while TestNetHandler was broken.