test8 stuff has been added and some estimation function has been added