slave-test: add promise to self-test.