Fixed debugging TEST command bug and a couple of typos