Added tests for the Remote Shell

Corrected the case where the port given as component property is None