add failing test for selected connections
add fix for selected connections