base constructor and test working