Add bad connection string test

The changing option by ref is not working, going to go check it.
Check all pg_query_once's returns for NULL