fixed unit tests on provider code