add failing test for selected connections
add fix for selected connections
Merge pull request #94 from iceddev/master

Added test and fix for #93