added tests for ConnectionSafe
typo fixed