the rebuy will also made when autoDeal will not be called
some fixes in setOption
some test fixes