ChainBuilder xml docs and more tests