fixes #331 - fix tests. Made LoginMetadata an XML bean