fix entry_points
add a test