Add unit tests for mp::connect. Work in progress.