updates after code review

create provider_name helper and test for it
update code style
update tests