Replaced internal connected variable with readyState - ref #28
Added switchboard close test (for the future)