fixed test: unexpected test plan ran if DB setup was failed

  - fixed test: unexpected test plan ran if DB setup was failed.
  - fixed test: took measures to following warnings:
     - Use of uninitialized value $Test::mysqld::errstr in warn at t/Util.pm line 42.