M-tests for Detection of Structural Changes in Regression