Fix failure message for tests
Fix 404 error when accessing nonexistant session