test function

Generic function for hypothesis testing of provider effects