Disable DOS before atempting to test the memory locations used by DOS.
All input from the keyboard displayed on your screen goes through DOS; therefore, DOS is erased during the memory test, which causes your system to hang. To disable DOS, type from the monitor: