Enhancement: Lower and Upper Ranges

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