Added tests for connected and disconnected tags