exceptions mimic, tests fixes