Remove extraneous space added when testing (closes #1938)