Fix erroneous error messages when running gang scheduling.
Fix minor memory leak
Make test more robust

Test would periodically fail due to expect timing.
This seems to fix the problem
Don't run the init on the DBD.  Addition to commit
226b49a3c19c6f62147b0d5f8fedc392ccdf8f8d
Merge remote-tracking branch 'origin/slurm-2.6'