Optimized unit-test structure