Modified test_cmdmanager to use new implementation of returning value.
Added doc strings.
Divide test about activation in single unit test.
Modified tests to use new implementation of returning value.
Create environment for testing in test_connection_manager by implementing create_environment method and reassigned constant to new environment.
PEP8 fix and removed duplicated line.