Add a test for basic auth identity policy.