Error handler test, session fix