[TASK] Remove unused method and cover Connection with tests