Test whether authentication is sufficient for action foo.