Add unit tests around helper exception handling