Yes, I've always set them off before signing off on a final inspection. It is Not only to test function but interconnectivity. According to California Residential code Section R314.4: any new building or building undergoing sufficient alteration to allow it, smoke alarms are required to be...