Refactored Registration test to include logout