tested: registration -> logout