Merge "Make setCacheTestMode() a module API" into main