adding unit test for formula init method