Use the same routine to launch both unit and func tests