hydra testing function recursion