Backwards compatible rain_level field and unit tests.