Added tests for buildslave/protocols/base.py