Add unit tests for connection string parsing with wild users and bad ports

- Increase stringency of regular expression to match up to 5 digits for ports
- Test connection string with user containing both : and @ characters
- Add test with invalid port and check the port is parsed with the server name