regression tests for lmdbg-head
minor code clean-ups
new regression test for exit status