add testing ability for xhr service error logging