adds sinon test for update profile with async login