Improved user name field access test to make it reusable.