bug fixes for exception-raising for poor args for larch functions
fixing up unit tests