We have the init function fot writing unit test more easily.