fix bug of intendent in tests