Added unittests for bot connect method