updated testmaker to capture exception correctly for display