add unit test for roots method