multi-stage testing