fix wrong apigen configuration
add test