add test cases and comments
Merge pull request #1 from pelferina/testConnectivity

add test cases and comments