A test for regression function adequacy