On a class of estimation and test for long memory