some unit test fixes
some mdb fixes
extra error messages around mdb and scans