Fix UnitTestConnection, and Add test for rotation.

Fix test for connection after deleting Connection-class, and added one
test case for checking rotation (checkLinks)