A simple framework for complex testing