Davide Beatrici : mmdevapi: Move test_connect handling into mmdevapi.