add max adapt unit test
fix adapt segment decrement
add adapt segment min unit test
add adapt segment unit test
add connected active syn for seg unit test