Added tests for error handling
Added logout tests