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.
The comment should be updated though before merging.