using el-mock to test rotate connections