implemented stat tests