Improve TeamCity connection test