stub error interceptor for JS tests