Added code to simplify testing console output
Test for the CMS detection