fixed failing tests by changing @user to @user.username