finished coding and unit tests on EFFunctionProvider

except the AddFunctionsToRoles