Fix severity read issue #22.

Test and fix #22. I added scalacheck as a test dependency, I hope this is ok.