fix spec issues for api transaction scripts by adiusting error notation and debugging for mocks