Reliability modeling, testing and optimization of systems with mixtures of one-shot units