fix for error with message test due to invalid params
Fix for deprecation warning of conditions of model with new rails version
fix error with tests. Remove null constraint of notes closed_at - in line with upstream osm master