updated unit test for config provider

successfully checks to ensure that the unauthorizedFn is set to the
desired fn