Modify test to check for invalid hosts instead of empty input strings.
Throw error for invalid connection strings provided to parse.