test for user.add_provider