Test that user's username gets updated.

See commit c95c1f6ba8e77a478e07503cec69a3d232f6f589 and GH #241.