On a new test of fit to the beta distribution