cavern.tst: Parse warning/error counts more robustly
Previously we'd get confused if the final line just contained an integer, e.g. if we end listing stations not attached to a fixed point.