refactor mirror protocol;add reb-black computing test