Fix warning: replace use of deprated class junit.framework.Assert by org.junit.Assert
Minor: Improve connector test fiability