Average Most Powerful Tests for a Segmented Regression