Rename clear_auth_functions_cache

Rename the clear_auth_functions_cache to clear_auth_cache that will
clear the functions cache as well the CONFIG_PERMISSIONS cache. Use
function in the tear down function instead of manually clearing the
CONFIG_PERMISSIONS cache