Add end-to-end testing for Issue #5 and enhanced logout for Issue #3