Hotfix: deprecated mongo attribute, cs, unit tests

* Fixed unit tests and deprecated mongo attribute
* Added cs testing, fixing and mess detector