Begin porting login logout tests from CMFPlone. Use real tests instead of doctests.