add regression test for module-scoped client-only APIs in server builds