Fixed handleError route tests