fix PlainAuth invalidate_domain
expanded PlainAuth tests