added UserAgent.userData to agent serialization and adapted tests