fix test failures
add config generator (fix #17)