Fix some JDBC connection pbs in unit tests