Added test for medium operating_system

Please review it
Thanks
catch the specific exception `CLIFactoryError`