Refactored test_routing tests

* Moved tests into three classes one for each CAS version
* Minor formating changes