BuildSlave: add some unit tests for 'attached'