at last agent tests pass :-)