Exported symbols, fixed handling of errs
Yet more tests