test the updating of profile