Fix tests and verify ratio lines/roads

fixes #380 and fixes tests broken by recent commits which weren't caught because Travis doesn't test Scala.
That seems pretty far off.  Do you know why there's such a difference?