Spelling mistake in comments.

Cannot let this one slide.
Restructured testConnection

Unnecessary else statements after returns
More implicit if/else/return statements