Repaired Debug block; added a test

(refs #3458)