get more compact configure
add test