Fix test issues

Remove the dependency on stdlib 4.x puppetlabs/puppetlabs-mysql#574
introduced, add some input validation, and improve test checks.
Merge pull request #603 from mhaskel/mysql_test_fixes

Fix test issues