Tests: Pass in user info as a dict assigned to data.

Serialize the data properly and fix the expected
value.