BuildSlave: add some unit tests for 'attached'
Merge branch 'BuildSlaveAttachedTests' of git://github.com/jaredgrubb/buildbot