Test case for h_roots