Oops - extra space in dbg_INFO= ".."
Fix oops in debug call, added test for mktemp file creation