Add tests for CORS shared dbs

BugzId: 33388