Fix space errors in toTextDB methods and added to Test Driver